package ai.example.langchain4j;

import ai.example.langchain4j.aop.MyChatModelListener;
import dev.langchain4j.model.chat.listener.ChatModelListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Langchain4jApplication {

    public static void main(String[] args) {
        SpringApplication.run(Langchain4jApplication.class, args);
    }

    @Bean
    ChatModelListener chatModelListener() {
        return new MyChatModelListener();
    }
}
